/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Bill.java
 *
 * Created on Oct 30, 2013, 8:38:47 PM
 */

package sims.gui;

/**
 *
 * @author NINH
 */
public class Bill extends javax.swing.JPanel {

    /** Creates new form Bill */
    public Bill() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        buttonGroup1 = new javax.swing.ButtonGroup();
        jScrollPane1 = new javax.swing.JScrollPane();
        tblBill = new javax.swing.JTable();
        jPanel1 = new javax.swing.JPanel();
        jScrollPane2 = new javax.swing.JScrollPane();
        tblDetail = new javax.swing.JTable();
        btnUpdate = new javax.swing.JButton();
        btnAdd = new javax.swing.JButton();
        btnDelete = new javax.swing.JButton();
        lblCusName = new javax.swing.JLabel();
        jLabel14 = new javax.swing.JLabel();
        txtCusName = new javax.swing.JTextField();
        lblBillCode = new javax.swing.JLabel();
        jLabel16 = new javax.swing.JLabel();
        txtBillCode = new javax.swing.JTextField();
        lblCusGender = new javax.swing.JLabel();
        jLabel18 = new javax.swing.JLabel();
        lblCusDOB = new javax.swing.JLabel();
        jLabel20 = new javax.swing.JLabel();
        txtCategory7 = new javax.swing.JTextField();
        lblCusAddress = new javax.swing.JLabel();
        jLabel22 = new javax.swing.JLabel();
        txtCusAddress = new javax.swing.JTextField();
        lblCusEmail = new javax.swing.JLabel();
        jLabel24 = new javax.swing.JLabel();
        txtCusEmail = new javax.swing.JTextField();
        lblCusPhone = new javax.swing.JLabel();
        jLabel26 = new javax.swing.JLabel();
        txtCusPhone = new javax.swing.JTextField();
        lblPayType = new javax.swing.JLabel();
        jLabel28 = new javax.swing.JLabel();
        radMale = new javax.swing.JRadioButton();
        radFemale = new javax.swing.JRadioButton();
        cboPayType = new javax.swing.JComboBox();
        btnAdd1 = new javax.swing.JButton();
        lblTotal = new javax.swing.JLabel();

        setBackground(new java.awt.Color(255, 255, 255));
        setBorder(javax.swing.BorderFactory.createTitledBorder("Bill manager"));
        setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        tblBill.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jScrollPane1.setViewportView(tblBill);

        add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 20, 1030, 250));

        jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        tblDetail.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Product name", "Price", "Quantity", "Total"
            }
        ));
        jScrollPane2.setViewportView(tblDetail);

        jPanel1.add(jScrollPane2, new org.netbeans.lib.awtextra.AbsoluteConstraints(610, 40, 390, 160));

        btnUpdate.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sims/images/edit.png"))); // NOI18N
        btnUpdate.setText("Edit");
        jPanel1.add(btnUpdate, new org.netbeans.lib.awtextra.AbsoluteConstraints(700, 210, -1, 24));

        btnAdd.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sims/images/add.png"))); // NOI18N
        btnAdd.setText("Choose product");
        jPanel1.add(btnAdd, new org.netbeans.lib.awtextra.AbsoluteConstraints(610, 10, -1, 24));

        btnDelete.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sims/images/delete.png"))); // NOI18N
        btnDelete.setText("Delete");
        jPanel1.add(btnDelete, new org.netbeans.lib.awtextra.AbsoluteConstraints(790, 210, -1, 24));

        lblCusName.setFont(new java.awt.Font("Tahoma", 2, 11));
        lblCusName.setForeground(new java.awt.Color(255, 0, 0));
        lblCusName.setText("Category can not be blank.");
        jPanel1.add(lblCusName, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 40, 200, 20));

        jLabel14.setFont(new java.awt.Font("Tahoma", 1, 11));
        jLabel14.setText("Customer name: ");
        jPanel1.add(jLabel14, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 40, 110, 20));
        jPanel1.add(txtCusName, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 40, 200, -1));

        lblBillCode.setFont(new java.awt.Font("Tahoma", 2, 11));
        lblBillCode.setForeground(new java.awt.Color(255, 0, 0));
        lblBillCode.setText("Category can not be blank.");
        jPanel1.add(lblBillCode, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 10, 200, 20));

        jLabel16.setFont(new java.awt.Font("Tahoma", 1, 11));
        jLabel16.setText("Bill code: ");
        jPanel1.add(jLabel16, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 10, 110, 20));
        jPanel1.add(txtBillCode, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 10, 200, -1));

        lblCusGender.setFont(new java.awt.Font("Tahoma", 2, 11));
        lblCusGender.setForeground(new java.awt.Color(255, 0, 0));
        lblCusGender.setText("Category can not be blank.");
        jPanel1.add(lblCusGender, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 70, 200, 20));

        jLabel18.setFont(new java.awt.Font("Tahoma", 1, 11));
        jLabel18.setText("Customer gender: ");
        jPanel1.add(jLabel18, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 70, 110, 20));

        lblCusDOB.setFont(new java.awt.Font("Tahoma", 2, 11));
        lblCusDOB.setForeground(new java.awt.Color(255, 0, 0));
        lblCusDOB.setText("Category can not be blank.");
        jPanel1.add(lblCusDOB, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 100, 200, 20));

        jLabel20.setFont(new java.awt.Font("Tahoma", 1, 11));
        jLabel20.setText("Customer DOB: ");
        jPanel1.add(jLabel20, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 100, 110, 20));
        jPanel1.add(txtCategory7, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 100, 200, -1));

        lblCusAddress.setFont(new java.awt.Font("Tahoma", 2, 11));
        lblCusAddress.setForeground(new java.awt.Color(255, 0, 0));
        lblCusAddress.setText("Category can not be blank.");
        jPanel1.add(lblCusAddress, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 130, 200, 20));

        jLabel22.setFont(new java.awt.Font("Tahoma", 1, 11));
        jLabel22.setText("Customer address: ");
        jPanel1.add(jLabel22, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 130, 110, 20));
        jPanel1.add(txtCusAddress, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 130, 200, -1));

        lblCusEmail.setFont(new java.awt.Font("Tahoma", 2, 11));
        lblCusEmail.setForeground(new java.awt.Color(255, 0, 0));
        lblCusEmail.setText("Category can not be blank.");
        jPanel1.add(lblCusEmail, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 160, 200, 20));

        jLabel24.setFont(new java.awt.Font("Tahoma", 1, 11));
        jLabel24.setText("Customer email: ");
        jPanel1.add(jLabel24, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 160, 110, 20));
        jPanel1.add(txtCusEmail, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 160, 200, -1));

        lblCusPhone.setFont(new java.awt.Font("Tahoma", 2, 11));
        lblCusPhone.setForeground(new java.awt.Color(255, 0, 0));
        lblCusPhone.setText("Category can not be blank.");
        jPanel1.add(lblCusPhone, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 190, 200, 20));

        jLabel26.setFont(new java.awt.Font("Tahoma", 1, 11));
        jLabel26.setText("Customer phone: ");
        jPanel1.add(jLabel26, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 190, 110, 20));
        jPanel1.add(txtCusPhone, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 190, 200, -1));

        lblPayType.setFont(new java.awt.Font("Tahoma", 2, 11));
        lblPayType.setForeground(new java.awt.Color(255, 0, 0));
        lblPayType.setText("Category can not be blank.");
        jPanel1.add(lblPayType, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 220, 200, 20));

        jLabel28.setFont(new java.awt.Font("Tahoma", 1, 11));
        jLabel28.setText("Pay type: ");
        jPanel1.add(jLabel28, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 220, 110, 20));

        buttonGroup1.add(radMale);
        radMale.setText("Male");
        jPanel1.add(radMale, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 70, -1, -1));

        buttonGroup1.add(radFemale);
        radFemale.setText("Female");
        jPanel1.add(radFemale, new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 70, -1, -1));

        cboPayType.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        jPanel1.add(cboPayType, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 220, 200, -1));

        btnAdd1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sims/images/add.png"))); // NOI18N
        btnAdd1.setText("Add");
        jPanel1.add(btnAdd1, new org.netbeans.lib.awtextra.AbsoluteConstraints(610, 210, -1, 24));

        lblTotal.setText("Total: ");
        jPanel1.add(lblTotal, new org.netbeans.lib.awtextra.AbsoluteConstraints(790, 14, 210, 20));

        add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 280, 1030, 260));
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnAdd;
    private javax.swing.JButton btnAdd1;
    private javax.swing.JButton btnDelete;
    private javax.swing.JButton btnUpdate;
    private javax.swing.ButtonGroup buttonGroup1;
    private javax.swing.JComboBox cboPayType;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel26;
    private javax.swing.JLabel jLabel28;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JLabel lblBillCode;
    private javax.swing.JLabel lblCusAddress;
    private javax.swing.JLabel lblCusDOB;
    private javax.swing.JLabel lblCusEmail;
    private javax.swing.JLabel lblCusGender;
    private javax.swing.JLabel lblCusName;
    private javax.swing.JLabel lblCusPhone;
    private javax.swing.JLabel lblPayType;
    private javax.swing.JLabel lblTotal;
    private javax.swing.JRadioButton radFemale;
    private javax.swing.JRadioButton radMale;
    private javax.swing.JTable tblBill;
    private javax.swing.JTable tblDetail;
    private javax.swing.JTextField txtBillCode;
    private javax.swing.JTextField txtCategory7;
    private javax.swing.JTextField txtCusAddress;
    private javax.swing.JTextField txtCusEmail;
    private javax.swing.JTextField txtCusName;
    private javax.swing.JTextField txtCusPhone;
    // End of variables declaration//GEN-END:variables

}
